package com.paic.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @Author Husp
 * @date 2024/10/29 10:25
 */
@Controller
public class IndexConroller {

    @GetMapping("/index")
    public ModelAndView index(){
        ModelAndView model = new ModelAndView();
        model.addObject("msg", "hello boot-jsp 123456");
        model.setViewName("index");
        return model;
    }
}
